import AppDispatcher from '../dispatcher/dispatcher';

export const Actions = {
    getDep(id){
        AppDispatcher.dispatch({
            actionType: 'GET_DEP',
            id: id
        })
    },

    getTitle(id){
        AppDispatcher.dispatch({
            actionType: 'GET_TITLE',
            id: id
        })
    },

    getDoctor(id){
        AppDispatcher.dispatch({
            actionType: 'GET_DOCTOR',
            id:id
        })
    },
    getDoctors(id){
        AppDispatcher.dispatch({
            actionType: 'GET_DOCTORS_BY_DEP',
            id:id
        })
    },
    getComments(id){
        AppDispatcher.dispatch({
            actionType: 'GET_COMMENTS',
            id:id
        })
    },
    getRating(id){
        AppDispatcher.dispatch({
            actionType: 'GET_RATING',
            id:id
        })
    },
    getChat(id){
        AppDispatcher.dispatch({
            actionType: 'GET_CHAT',
            id:id
        })
    },
    ctrlNav(data){
        AppDispatcher.dispatch({
            actionType: 'CTRL_NAV',
            data: data
        })
    }
};
